package com.jeesite.modules.exam.quota.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import lombok.Data;

/**
 * 考核任务指标表-被考核单位Entity
 * @author xhc
 * @version 2022-05-28
 */
@Table(name="dc_sup_exam_quota_org", alias="a", label="考核任务指标表-被考核单位信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="quota_id", attrName="quotaId", label="指标id"),
		@Column(name="quota_info_id", attrName="quotaInfoId", label="指标信息id"),
		@Column(name="exame_org", attrName="exameOrg", label="被考核单位编码", comment="被考核单位编码（单个）"),
		@Column(name="exame_org_name", attrName="exameOrgName", label="被考核单位名称", comment="被考核单位名称（单个）", queryType=QueryType.LIKE),
		@Column(name="quota_weight", attrName="quotaWeight", label="权数", comment="权数（分值）", isQuery=false, isUpdateForce=true),
		@Column(name="current_yaer_goal", attrName="currentYaerGoal", label="本年度目标", isQuery=false),
		@Column(name="last_yaer_goal", attrName="lastYaerGoal", label="上一年度目标任务", isQuery=false),
		@Column(name="last_year_complete", attrName="lastYearComplete", label="上一年度完成情况", isQuery=false),
		@Column(name="assess_method", attrName="assessMethod", label="考核方式"),
		@Column(name="quota_unit", attrName="quotaUnit", label="单位"),
		@Column(name="create_date", attrName="createDate", label="创建时间"),
		@Column(name="org_type", attrName="orgType", label="类型"),
		@Column(name="time_string", attrName="timeString", label="时间戳",isUpdateForce=false),
		@Column(name="remarks", attrName="remarks", label="备注"),
	}, orderBy="a.id DESC"
)
@Data
public class DcSupExamQuotaOrg extends DataEntity<DcSupExamQuotaOrg> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 指标id
	 */
	private String quotaId;
	 /**
	 * 指标信息id
	 */
	private String quotaInfoId;
	 /**
	 * 被考核单位编码（单个）
	 */
	private String exameOrg;
	 /**
	 * 被考核单位名称（单个）
	 */
	private String exameOrgName;

	/**
	 * 权数（分值）
	 */
	private Double quotaWeight;
	/**
	 * 本年度目标
	 */
	private String currentYaerGoal;
	/**
	 * 上一年度目标任务
	 */
	private String lastYaerGoal;
	/**
	 * 上一年度完成情况
	 */
	private String lastYearComplete;

	private String quotaUnit;

	private String rowno;
	private String timeString;
	private String remarks;


	/**
	 *  单位类型（1区县、2其他）
	 */
	private String orgType;

	public String getQuotaUnit() {
		return quotaUnit;
	}

	public void setQuotaUnit(String quotaUnit) {
		this.quotaUnit = quotaUnit;
	}

	public String getRowno() {
		return rowno;
	}

	public void setRowno(String rowno) {
		this.rowno = rowno;
	}

	public Double getQuotaWeight() {
		return quotaWeight;
	}

	public void setQuotaWeight(Double quotaWeight) {
		this.quotaWeight = quotaWeight;
	}

	public String getCurrentYaerGoal() {
		return currentYaerGoal;
	}

	public void setCurrentYaerGoal(String currentYaerGoal) {
		this.currentYaerGoal = currentYaerGoal;
	}

	public String getLastYaerGoal() {
		return lastYaerGoal;
	}

	public void setLastYaerGoal(String lastYaerGoal) {
		this.lastYaerGoal = lastYaerGoal;
	}

	public String getLastYearComplete() {
		return lastYearComplete;
	}

	public void setLastYearComplete(String lastYearComplete) {
		this.lastYearComplete = lastYearComplete;
	}

	public String getAssessMethod() {
		return assessMethod;
	}

	public void setAssessMethod(String assessMethod) {
		this.assessMethod = assessMethod;
	}

	private String assessMethod;
	
	public DcSupExamQuotaOrg() {
		this(null);
	}

	public DcSupExamQuotaOrg(String id){
		super(id);
	}
	
	@Size(min=0, max=64, message="指标id长度不能超过 64 个字符")
	public String getQuotaId() {
		return quotaId;
	}

	public void setQuotaId(String quotaId) {
		this.quotaId = quotaId;
	}
	
	@Size(min=0, max=64, message="指标信息id长度不能超过 64 个字符")
	public String getQuotaInfoId() {
		return quotaInfoId;
	}

	public void setQuotaInfoId(String quotaInfoId) {
		this.quotaInfoId = quotaInfoId;
	}
	
	@Size(min=0, max=100, message="被考核单位编码长度不能超过 100 个字符")
	public String getExameOrg() {
		return exameOrg;
	}

	public void setExameOrg(String exameOrg) {
		this.exameOrg = exameOrg;
	}
	
	@Size(min=0, max=100, message="被考核单位名称长度不能超过 100 个字符")
	public String getExameOrgName() {
		return exameOrgName;
	}

	public void setExameOrgName(String exameOrgName) {
		this.exameOrgName = exameOrgName;
	}

	public String getOrgType() {
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}
}